<?php

@$_SESSION['title'] = $_SESSION['title'];
@$_SESSION['subtitle'] = $_SESSION['subtitle'];

Print("

<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">
<html xmlns=\"http://www.w3.org/1999/xhtml\">
  
  <head>
    <title>$_SESSION[title] | $_SESSION[subtitle]</title>
    <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />
");

	/*******/
	/* CSS */
	/*******/
		imports_css("currentt.style");
    
	/********************/
	/* Default includes */
	/********************/
		include ("$_SESSION[path_core]/includes.php");
					
		if (file_exists("$_SESSION[current_path]/includes.php"))
			include ("$_SESSION[current_path]/includes.php");
    
Print("
	</head>
  
	<body>
		<div id=\"wrapper\">
			<div id=\"header\">
				<div id=\"title\">
					$_SESSION[title]
				</div>
				<br>
				<div id=\"subtitle\">
					$_SESSION[subtitle]
				</div>
			</div>
			<div id=\"nav1\">
				<ul id=\"menus\">
");
					make_menu();
Print("
				</ul>
			</div>
			<div id=\"content-wrapper\">
    			<div id=\"main\">
");
					include ("$_SESSION[current_path]/select.php");
Print("
					<p>&nbsp;</p>
				</div>
				<div id=\"sidebar\">
");
					if (file_exists("$_SESSION[current_path]/menu.php"))
						include ("$_SESSION[current_path]/menu.php");
						$date = date('Y');
Print("
				</div>
			</div>
			<div id=\"footer\">
				<p>
					Powered by <a href=\"http://www.opendevtools.net\">OpenDevTools - EnsKa PHP</a><br>
					Copyright &copy $date $_SESSION[title] All rights reserved.");
					
					if (is_administrator(@$_SESSION['uid']))
						Print(" - <a href=\"./webadmin\">[Administration]</a>");
					Print("
					<br><a rel=\"license\" href=\"http://creativecommons.org/licenses/by-nc-sa/2.0/fr/\" target=\"_blank\">
						<img alt=\"Creative Commons License\" style=\"border-width:0\" src=\"http://i.creativecommons.org/l/by-nc-sa/2.0/fr/88x31.png\" />
					</a>
				</p>
			</div>	
		</div>
	</body>
</html>
");

?>